<template>
  <div class="my_header">
      <span>
          <slot name="left"></slot>
      </span>
      <section>
          <!-- <slot name="center" :i="num"></slot> -->
          <slot name="center"></slot>
      </section>
      <span>
          <slot name="right"></slot>
      </span>
  </div>
</template>

<script>
import { ref } from "vue";
export default {
//   props:{
//     str: String
//   },
  setup() {
    const num = ref(10)
    return{
        num
    }
  },
};
</script>
<style lang="scss" scoped>
.my_header{
  height: 50px;
  display: flex;
  align-items: center;
  font-size: 14px;
  span{
    width: 60px;
    text-align: center;
  }
  section{
    flex: 1;
    text-align: center;
  }
}
</style>